-- GENERATED SPELL FOR [Greater Duskbat] --


function spell0_1553(pUnit, Event) --@Ravage,n/a--
pUnit:FullCastSpellOnTarget(3242,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1553', 2340, 1)
end

function Sorts_1553(pUnit, Event)
local choix_sorts_1553 = math.random(0, 0)
if choix_sorts_1553 == 0 then
pUnit:RegisterEvent('spell0_1553', 1, 1)
end
end

function mob1553_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1553', math.random(1500, 3000), 1)
end

function mob1553_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1553_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1553_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1553, 1, 'mob1553_Action')
RegisterUnitEvent(1553, 2, 'mob1553_Leave')
RegisterUnitEvent(1553, 3, 'mob1553_Kill')
RegisterUnitEvent(1553, 4, 'mob1553_Die')
